<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>用户中心</title>
    <link rel="stylesheet" type="text/css" href="/Public/Home/css/aui.css" />
    <style type="text/css">
        .text-white {
            color: #ffffff !important;
        }
        .aui-grid [class*=aui-col-] {
            padding: 0.75rem 0;
        }
    </style>
</head>
<body>
    <!-- 顶部 -->
    <section class="aui-content" id="user-info">
        <div class="aui-list aui-media-list aui-list-noborder aui-bg-info">
            <div class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner ">
                    <div class="aui-list-item-media" style="width:3rem;">
                        <img src="/Public/Home/img/demo.jpg" class="aui-img-round" >
                    </div>
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-text text-white aui-font-size-18"><?php echo ($userinfo["nickname"]); ?></div>
                        <div class="aui-list-item-text text-white">
                           <div>积分：<?php echo ($userinfo["points"]); ?></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <br/>

    <div class="aui-content aui-margin-b-15">
        <ul class="aui-list aui-media-list">
            <li class="aui-list-header">
                竞猜记录
            </li>
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="aui-list-item aui-list-item-middle">
                <div class="aui-media-list-item-inner">
                    <div class="aui-list-item-inner aui-list-item-arrow">
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title aui-font-size-14"><div class="aui-label" style="font-size: 0.5rem"><?php echo ($vo["number"]); ?></div> <?php echo ($vo["jincai"]); ?>  </div>
                            <?php if($vo['add_points']!=0){ ?><div class="aui-label aui-label-info"><?php echo ($vo["add_points"]); ?></div><?php }else{ echo "-".$vo['del_points'];} ?>
                        </div>
                        <div class="aui-list-item-text">
                            <div class="aui-list-item-title" style="font-size: 0.5rem;color: #d8d8d8"><?php echo (date("Y-m-d H:i:s",$vo["time"])); ?></div>
                            <?php if($vo['add_points']!=0){ ?><div class="aui-list-item-right" style="font-size: 0.4rem;color: #d8d8d8">中奖积分</div><?php } ?>
                        </div>
                        
                    </div>
                </div>
            </li><?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>
    </div>
    <div id="demo"></div>
<footer class="aui-bar aui-bar-tab" id="footer">
    <div class="aui-bar-tab-item" tapmode>
        <a href="<?php echo U('Home/Index/index');?>">
        <i class="aui-iconfont aui-icon-home"></i>
        <div class="aui-bar-tab-label">玩法</div>
        </a>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <a href="<?php echo U('Home/Guess/index');?>">
        <i class="aui-iconfont aui-icon-star"></i>
        <div class="aui-bar-tab-label">竞猜</div></a>
    </div>
    <div class="aui-bar-tab-item" tapmode>
        <div class="aui-badge">10</div>
        <a href="<?php echo U('Home/Index/lottery');?>">
        <i class="aui-iconfont aui-icon-date"></i>
        <div class="aui-bar-tab-label">开奖历史</div>
        </a>
    </div>
    <div class="aui-bar-tab-item">
        <div class="aui-dot"></div>
        <a href="<?php echo U('Home/Index/user');?>">
        <i class="aui-iconfont aui-icon-my"></i>
        <div class="aui-bar-tab-label">我的</div>
        </a>
    </div>
</footer>
</body>
<script type="text/javascript" src="/Public/Home/script/api.js"></script>
<script type="text/javascript">
    apiready = function () {
    }
</script>
</html>